//
//  ZYTempController.m
//  VeiBo
//
//  Created by apple on 16/12/3.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "ZYTempController.h"

@interface ZYTempController ()

@end

@implementation ZYTempController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
}

- (void)setupUI{
     self.view.backgroundColor = [UIColor whiteColor];
    [self setupNav];
}
- (void)setupNav{
    
//    self.navigationItem.leftBarButtonItem = [UIBarButtonItem ZY_setButtonItemImageName:@"navigationbar_back_withtext" title:@"返回" target:self action:@selector(backClick)];
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem ZY_setButtonItemImageName:nil title:@"PUSH" target:self action:@selector(pushClick)];
    self.navigationItem.title = [NSString stringWithFormat:@"是第%zd个控制器",self.navigationController.childViewControllers.count];
    
}

- (void)pushClick{
    
    ZYTempController* tepVc = [[ZYTempController alloc] init];
    [self.navigationController pushViewController:tepVc animated:YES];
}

//- (void)backClick{
//    
//    [self.navigationController popViewControllerAnimated:YES];
//}

@end
